package com.ssish.saas.eccs.util;

import java.util.ArrayList;
import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;




/**
 * 该类是用于对xml文件 进行解析  
 * @author
 *
 */
public class XmlUtil {
	public static Logger log = LogManager.getLogger(XmlUtil.class);
	
	public static String getIdCardInfo(String xml) throws Exception {
		Document doc = DocumentHelper.parseText(xml);
		Element root = doc.getRootElement();
		String result=root.getText();
		return result; 
	}


	

	

}
